.class public Lcom/nemustech/regina/SecretPointChecker;
.super Ljava/lang/Object;
.source "SecretPointChecker.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;
    }
.end annotation


# static fields
.field private static final CORNER_NUM:I = 0x4

.field public static final HIGHLIGHT_LB:I = 0x3

.field public static final HIGHLIGHT_LT:I = 0x1

.field public static final HIGHLIGHT_NONE:I = 0x0

.field public static final HIGHLIGHT_RB:I = 0x4

.field private static final HIGHLIGHT_RES:[I = null

.field public static final HIGHLIGHT_RT:I = 0x2

.field private static final HIGHLIGHT_TOUCH_SIZE:I = 0x32

.field private static final TAG:Ljava/lang/String; = "SecretPointChecker"


# instance fields
.field private mContext:Landroid/content/Context;

.field private mCornerImgRect:[Landroid/graphics/Rect;

.field private mCornerSelect:I

.field private mCornerTouchRect:[Landroid/graphics/Rect;

.field private final mHandler:Landroid/os/Handler;

.field private mHighlightRemovable:Ljava/lang/Runnable;

.field private mOldSecretCheckTick:J

.field private mOnCheckPassListener:Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;

.field private mOwnerView:Landroid/view/View;

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mSecretCheckIndex:I

.field private mSecretModeEntering:Z

.field private mSecretPass:[I

.field private mSecretPassStr:Ljava/lang/String;

.field private mSecretWsMode:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 24
    const/4 v0, 0x4

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/nemustech/regina/SecretPointChecker;->HIGHLIGHT_RES:[I

    return-void

    nop

    :array_0
    .array-data 0x4
        0x73t 0x0t 0x2t 0x7ft
        0x74t 0x0t 0x2t 0x7ft
        0x75t 0x0t 0x2t 0x7ft
        0x76t 0x0t 0x2t 0x7ft
    .end array-data
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/View;)V
    .locals 5
    .parameter "context"
    .parameter "ownerView"

    .prologue
    const/4 v4, 0x4

    const/4 v3, 0x0

    .line 48
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 31
    new-instance v2, Landroid/os/Handler;

    invoke-direct {v2}, Landroid/os/Handler;-><init>()V

    iput-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mHandler:Landroid/os/Handler;

    .line 35
    new-array v2, v4, [Landroid/graphics/Rect;

    iput-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    .line 36
    new-array v2, v4, [Landroid/graphics/Rect;

    iput-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    .line 37
    iput v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    .line 38
    iput-boolean v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretWsMode:Z

    .line 177
    new-instance v2, Lcom/nemustech/regina/SecretPointChecker$1;

    invoke-direct {v2, p0}, Lcom/nemustech/regina/SecretPointChecker$1;-><init>(Lcom/nemustech/regina/SecretPointChecker;)V

    iput-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mHighlightRemovable:Ljava/lang/Runnable;

    .line 49
    iput-boolean v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    .line 51
    invoke-static {p1}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v2

    iput v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    .line 52
    invoke-static {p1}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v2

    iput v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    .line 54
    iput-object p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mContext:Landroid/content/Context;

    .line 55
    iput-object p2, p0, Lcom/nemustech/regina/SecretPointChecker;->mOwnerView:Landroid/view/View;

    .line 57
    invoke-static {p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v1

    .line 58
    .local v1, res:Lcom/nemustech/regina/ResourceCare;
    const v2, 0x7f0600a3

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    .line 59
    .local v0, img_size:I
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/SecretPointChecker;->setCornerImageSize(I)V

    .line 60
    const/16 v2, 0x32

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/SecretPointChecker;->setCornerTouchSize(I)V

    .line 63
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/SecretPointChecker;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 13
    iget-boolean v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    return v0
.end method

.method static synthetic access$002(Lcom/nemustech/regina/SecretPointChecker;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 13
    iput-boolean p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    return p1
.end method

.method static synthetic access$100(Lcom/nemustech/regina/SecretPointChecker;)Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 13
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mOnCheckPassListener:Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;

    return-object v0
.end method

.method static synthetic access$202(Lcom/nemustech/regina/SecretPointChecker;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 13
    iput p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    return p1
.end method

.method static synthetic access$300(Lcom/nemustech/regina/SecretPointChecker;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 13
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mOwnerView:Landroid/view/View;

    return-object v0
.end method


# virtual methods
.method public checkHighlight(FF)V
    .locals 11
    .parameter "x"
    .parameter "y"

    .prologue
    .line 103
    iget-boolean v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 159
    :cond_0
    return-void

    .line 107
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    array-length v6, v1

    .line 108
    .local v6, cnt:I
    const/4 v10, 0x0

    .local v10, i:I
    :goto_0
    if-ge v10, v6, :cond_0

    .line 109
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    aget-object v1, v1, v10

    float-to-int v2, p1

    float-to-int v3, p2

    invoke-virtual {v1, v2, v3}, Landroid/graphics/Rect;->contains(II)Z

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_5

    .line 111
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->isDeveloperMode()Z

    move-result v9

    .line 113
    .local v9, developerMode:Z
    if-eqz v9, :cond_2

    .line 115
    const/4 v1, 0x2

    if-ne v10, v1, :cond_6

    .line 116
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFWorld;->getCamera()Lcom/nemustech/tiffany/world/TFCamera;

    move-result-object v0

    .line 117
    .local v0, camera:Lcom/nemustech/tiffany/world/TFCamera;
    const/high16 v1, 0x3fc0

    const/high16 v2, 0x3fc0

    const v3, 0x4066978d

    const-wide/16 v4, 0x12c

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFCamera;->move(FFFJ)V

    .line 125
    .end local v0           #camera:Lcom/nemustech/tiffany/world/TFCamera;
    :cond_2
    :goto_1
    add-int/lit8 v1, v10, 0x1

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    .line 126
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mOwnerView:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->invalidate()V

    .line 127
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mHighlightRemovable:Ljava/lang/Runnable;

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 128
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mHighlightRemovable:Ljava/lang/Runnable;

    const-wide/16 v3, 0x1f4

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 130
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPassStr:Ljava/lang/String;

    if-eqz v1, :cond_5

    iget-boolean v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretWsMode:Z

    if-nez v1, :cond_5

    .line 131
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    .line 132
    .local v7, curTick:J
    iget-wide v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mOldSecretCheckTick:J

    sub-long v1, v7, v1

    const-wide/16 v3, 0x2710

    cmp-long v1, v1, v3

    if-lez v1, :cond_3

    .line 133
    const/4 v1, 0x0

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    .line 135
    :cond_3
    iput-wide v7, p0, Lcom/nemustech/regina/SecretPointChecker;->mOldSecretCheckTick:J

    .line 137
    const-string v1, "SecretPointChecker"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "("

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ")"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 138
    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    if-ltz v1, :cond_4

    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPass:[I

    array-length v2, v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    if-gt v1, v2, :cond_4

    .line 139
    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPass:[I

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    aget v2, v2, v3

    if-ne v1, v2, :cond_7

    .line 140
    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    .line 149
    :cond_4
    :goto_2
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPassStr:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_5

    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPassStr:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lt v1, v2, :cond_5

    .line 150
    const/4 v1, 0x0

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    .line 151
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    .line 152
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mOnCheckPassListener:Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;

    if-eqz v1, :cond_5

    .line 153
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mOnCheckPassListener:Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;

    invoke-interface {v1}, Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;->onCheckPassBeforeHighlightDrawing()V

    .line 108
    .end local v7           #curTick:J
    .end local v9           #developerMode:Z
    :cond_5
    add-int/lit8 v10, v10, 0x1

    goto/16 :goto_0

    .line 119
    .restart local v9       #developerMode:Z
    :cond_6
    const/4 v1, 0x3

    if-ne v10, v1, :cond_2

    .line 120
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFWorld;->getCamera()Lcom/nemustech/tiffany/world/TFCamera;

    move-result-object v0

    .line 121
    .restart local v0       #camera:Lcom/nemustech/tiffany/world/TFCamera;
    const/4 v1, 0x0

    const/4 v2, 0x0

    const v3, 0x4010d4fe

    const-wide/16 v4, 0x12c

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFCamera;->move(FFFJ)V

    goto/16 :goto_1

    .line 142
    .end local v0           #camera:Lcom/nemustech/tiffany/world/TFCamera;
    .restart local v7       #curTick:J
    :cond_7
    const/4 v1, 0x0

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    .line 143
    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPass:[I

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    aget v2, v2, v3

    if-ne v1, v2, :cond_4

    .line 144
    iget v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    goto :goto_2
.end method

.method public drawHighlight(Landroid/graphics/Canvas;)V
    .locals 5
    .parameter "canvas"

    .prologue
    .line 169
    iget v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    if-eqz v2, :cond_0

    .line 170
    iget v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    const/4 v3, 0x1

    sub-int v1, v2, v3

    .line 171
    .local v1, index:I
    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget-object v3, Lcom/nemustech/regina/SecretPointChecker;->HIGHLIGHT_RES:[I

    aget v3, v3, v1

    invoke-static {v2, v3}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 172
    .local v0, bmp:Landroid/graphics/Bitmap;
    iget-object v2, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    aget-object v2, v2, v1

    iget v2, v2, Landroid/graphics/Rect;->left:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    aget-object v3, v3, v1

    iget v3, v3, Landroid/graphics/Rect;->top:I

    int-to-float v3, v3

    const/4 v4, 0x0

    invoke-virtual {p1, v0, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 173
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 175
    .end local v0           #bmp:Landroid/graphics/Bitmap;
    .end local v1           #index:I
    :cond_0
    return-void
.end method

.method public isSecretEnteringMode()Z
    .locals 1

    .prologue
    .line 85
    iget-boolean v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretModeEntering:Z

    return v0
.end method

.method public selectHighlight(I)V
    .locals 4
    .parameter "index"

    .prologue
    .line 162
    add-int/lit8 v0, p1, 0x1

    iput v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerSelect:I

    .line 163
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mOwnerView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->invalidate()V

    .line 164
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mHighlightRemovable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 165
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mHighlightRemovable:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 166
    return-void
.end method

.method public setCornerImageSize(I)V
    .locals 7
    .parameter "size"

    .prologue
    const/4 v5, 0x0

    .line 89
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1, v5, v5, p1, p1}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v1, v0, v5

    .line 90
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    const/4 v1, 0x1

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    invoke-direct {v2, v3, v5, v4, p1}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 91
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    const/4 v1, 0x2

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    invoke-direct {v2, v5, v3, p1, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 92
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerImgRect:[Landroid/graphics/Rect;

    const/4 v1, 0x3

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    sub-int/2addr v4, p1

    iget v5, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    iget v6, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 93
    return-void
.end method

.method public setCornerTouchSize(I)V
    .locals 7
    .parameter "size"

    .prologue
    const/4 v5, 0x0

    .line 96
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1, v5, v5, p1, p1}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v1, v0, v5

    .line 97
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    const/4 v1, 0x1

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    invoke-direct {v2, v3, v5, v4, p1}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 98
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    const/4 v1, 0x2

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    invoke-direct {v2, v5, v3, p1, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 99
    iget-object v0, p0, Lcom/nemustech/regina/SecretPointChecker;->mCornerTouchRect:[Landroid/graphics/Rect;

    const/4 v1, 0x3

    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    sub-int/2addr v3, p1

    iget v4, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    sub-int/2addr v4, p1

    iget v5, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenWidth:I

    iget v6, p0, Lcom/nemustech/regina/SecretPointChecker;->mScreenHeight:I

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    aput-object v2, v0, v1

    .line 100
    return-void
.end method

.method public setOnCheckPassListener(Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 77
    iput-object p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mOnCheckPassListener:Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;

    .line 78
    return-void
.end method

.method public setSecretPassword(Ljava/lang/String;)V
    .locals 4
    .parameter "pass"

    .prologue
    .line 66
    if-eqz p1, :cond_1

    .line 67
    iput-object p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPassStr:Ljava/lang/String;

    .line 68
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    new-array v1, v1, [I

    iput-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPass:[I

    .line 69
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 70
    iget-object v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretPass:[I

    invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C

    move-result v2

    const/16 v3, 0x30

    sub-int/2addr v2, v3

    aput v2, v1, v0

    .line 69
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 72
    :cond_0
    const/4 v1, 0x0

    iput v1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretCheckIndex:I

    .line 74
    .end local v0           #i:I
    :cond_1
    return-void
.end method

.method public setSecretWsMode(Z)V
    .locals 0
    .parameter "secretMode"

    .prologue
    .line 81
    iput-boolean p1, p0, Lcom/nemustech/regina/SecretPointChecker;->mSecretWsMode:Z

    .line 82
    return-void
.end method
